#include <ledParamTables.h>
/* Efficiency is 1024 @25C , the value is 990*1024/1000 when efficiency is 99.0% */ 
static const TempParams_t TEMP_CURVE_TABLE_RED[TEMP_CMP_NUM_MAX] = 
{
    /*T(1C) efficiency deltaV(mV) x(%), y(%) */
/*0*/{1145U,40,1020U,1031U},
/*2*/{1139U,37,1020U,1031U},
/*4*/{1133U,33,1020U,1030U},
/*6*/{1127U,30,1021U,1030U},
/*8*/{1121U,25,1021U,1029U},
/*10*/{1112U,21,1022U,1029U},
/*12*/{1097U,18,1022U,1028U},
/*14*/{1083U,15,1022U,1027U},
/*16*/{1072U,12,1022U,1027U},
/*18*/{1060U,10,1023U,1026U},
/*20*/{1047U,6,1023U,1025U},
/*22*/{1035U,3,1023U,1025U},
/*24*/{1024U,0,1024U,1024U},
/*26*/{1009U,-6,1024U,1023U},
/*28*/{998U,-11,1024U,1022U},
/*30*/{987U,-13,1025U,1022U},
/*32*/{975U,-17,1025U,1021U},
/*34*/{963U,-20,1025U,1020U},
/*36*/{952U,-23,1025U,1020U},
/*38*/{939U,-25,1026U,1019U},
/*40*/{928U,-29,1026U,1018U},
/*42*/{917U,-31,1026U,1018U},
/*44*/{905U,-34,1026U,1017U},
/*46*/{889U,-37,1027U,1017U},
/*48*/{877U,-41,1027U,1016U},
/*50*/{864U,-45,1027U,1015U},
/*52*/{853U,-48,1028U,1015U},
/*54*/{841U,-51,1028U,1014U},
/*56*/{829U,-54,1028U,1014U},
/*58*/{819U,-57,1028U,1013U},
/*60*/{806U,-59,1028U,1013U},
/*62*/{795U,-62,1029U,1012U},
/*64*/{783U,-64,1029U,1012U},
/*66*/{771U,-68,1029U,1011U},
/*68*/{761U,-70,1029U,1011U},
/*70*/{749U,-74,1030U,1010U},
/*72*/{737U,-79,1030U,1009U},
/*74*/{726U,-82,1030U,1009U},
/*76*/{714U,-84,1030U,1008U},
/*78*/{703U,-87,1031U,1008U},
/*80*/{692U,-89,1031U,1007U},
/*82*/{681U,-92,1031U,1007U},
/*84*/{669U,-94,1031U,1006U},
/*86*/{657U,-96,1032U,1006U},
/*88*/{647U,-99,1032U,1005U},
/*90*/{634U,-102,1032U,1005U},
/*92*/{623U,-105,1032U,1005U},
/*94*/{612U,-108,1032U,1004U},
/*96*/{601U,-110,1032U,1004U},
/*98*/{590U,-113,1033U,1003U},
/*100*/{579U,-115,1033U,1003U},
/*102*/{568U,-117,1033U,1003U},
/*104*/{557U,-121,1033U,1003U},
/*106*/{546U,-123,1033U,1003U},
/*108*/{535U,-125,1033U,1003U},
/*110*/{524U,-127,1033U,1003U},
/*112*/{513U,-129,1033U,1003U},
/*114*/{502U,-132,1033U,1003U},
/*116*/{491U,-134,1033U,1003U},
/*118*/{480U,-137,1033U,1003U},
/*120*/{469U,-141,1033U,1003U},


};

static const TempParams_t TEMP_CURVE_TABLE_GREEN[TEMP_CMP_NUM_MAX] = 
{
/*0*/{1051U,46,990U,1028U},
/*2*/{1048U,40,991U,1028U},
/*4*/{1052U,37,994U,1027U},
/*6*/{1052U,32,996U,1027U},
/*8*/{1053U,28,999U,1027U},
/*10*/{1054U,24,1001U,1026U},
/*12*/{1051U,19,1004U,1026U},
/*14*/{1050U,15,1007U,1026U},
/*16*/{1044U,12,1009U,1025U},
/*18*/{1034U,10,1012U,1025U},
/*20*/{1028U,6,1015U,1025U},
/*22*/{1025U,2,1019U,1024U},
/*24*/{1024U,0,1024U,1024U},
/*26*/{1020U,-4,1025U,1023U},
/*28*/{1018U,-8,1030U,1022U},
/*30*/{1014U,-12,1033U,1022U},
/*32*/{1012U,-15,1036U,1022U},
/*34*/{1009U,-19,1040U,1021U},
/*36*/{1006U,-22,1044U,1021U},
/*38*/{1004U,-25,1047U,1020U},
/*40*/{1000U,-27,1051U,1020U},
/*42*/{998U,-31,1054U,1019U},
/*44*/{995U,-35,1057U,1019U},
/*46*/{993U,-37,1061U,1018U},
/*48*/{991U,-40,1064U,1018U},
/*50*/{989U,-43,1067U,1018U},
/*52*/{985U,-47,1071U,1017U},
/*54*/{983U,-50,1074U,1016U},
/*56*/{980U,-53,1077U,1016U},
/*58*/{978U,-56,1081U,1015U},
/*60*/{975U,-60,1085U,1015U},
/*62*/{972U,-63,1088U,1014U},
/*64*/{970U,-66,1090U,1013U},
/*66*/{967U,-69,1094U,1013U},
/*68*/{964U,-72,1097U,1012U},
/*70*/{961U,-74,1101U,1012U},
/*72*/{959U,-76,1104U,1011U},
/*74*/{956U,-80,1108U,1010U},
/*76*/{954U,-83,1112U,1010U},
/*78*/{951U,-86,1114U,1010U},
/*80*/{948U,-89,1118U,1009U},
/*82*/{945U,-93,1122U,1008U},
/*84*/{943U,-96,1125U,1008U},
/*86*/{940U,-98,1128U,1007U},
/*88*/{937U,-102,1132U,1007U},
/*90*/{934U,-104,1135U,1006U},
/*92*/{931U,-108,1139U,1005U},
/*94*/{928U,-111,1143U,1004U},
/*96*/{925U,-114,1145U,1004U},
/*98*/{923U,-116,1149U,1003U},
/*100*/{920U,-119,1152U,1003U},
/*102*/{917U,-121,1155U,1003U},
/*104*/{914U,-125,1158U,1003U},
/*106*/{911U,-126,1161U,1003U},
/*108*/{908U,-131,1164U,1003U},
/*110*/{905U,-134,1167U,1003U},
/*112*/{902U,-136,1170U,1003U},
/*114*/{899U,-140,1173U,1003U},
/*116*/{896U,-143,1176U,1003U},
/*118*/{893U,-145,1179U,1003U},
/*120*/{890U,-148,1182U,1003U},

};

static const TempParams_t TEMP_CURVE_TABLE_BLUE[TEMP_CMP_NUM_MAX] = 
{
    /*T(1C) efficiency deltaV(mV) x(%), y(%) */
/*0*/{1067U,39,1030U,990U},
/*2*/{1063U,34,1030U,991U},
/*4*/{1061U,31,1029U,993U},
/*6*/{1063U,28,1029U,994U},
/*8*/{1058U,24,1028U,998U},
/*10*/{1050U,21,1027U,1001U},
/*12*/{1048U,18,1027U,1003U},
/*14*/{1050U,15,1027U,1006U},
/*16*/{1048U,12,1026U,1009U},
/*18*/{1044U,9,1025U,1012U},
/*20*/{1039U,6,1024U,1017U},
/*22*/{1034U,3,1024U,1022U},
/*24*/{1024U,0,1024U,1024U},
/*26*/{1014U,-3,1023U,1027U},
/*28*/{1006U,-8,1021U,1032U},
/*30*/{1005U,-11,1021U,1036U},
/*32*/{1004U,-14,1020U,1040U},
/*34*/{1004U,-16,1020U,1043U},
/*36*/{1003U,-19,1019U,1044U},
/*38*/{1003U,-21,1018U,1049U},
/*40*/{1002U,-24,1017U,1053U},
/*42*/{1003U,-26,1017U,1057U},
/*44*/{1002U,-28,1017U,1061U},
/*46*/{1001U,-30,1015U,1064U},
/*48*/{1001U,-32,1015U,1069U},
/*50*/{1001U,-36,1014U,1072U},
/*52*/{1000U,-38,1013U,1077U},
/*54*/{1001U,-40,1013U,1080U},
/*56*/{1000U,-43,1013U,1083U},
/*58*/{1000U,-45,1012U,1088U},
/*60*/{1000U,-47,1011U,1093U},
/*62*/{1000U,-49,1010U,1098U},
/*64*/{999U,-52,1010U,1101U},
/*66*/{999U,-54,1009U,1106U},
/*68*/{1000U,-56,1008U,1111U},
/*70*/{999U,-58,1007U,1114U},
/*72*/{997U,-61,1007U,1119U},
/*74*/{999U,-63,1007U,1124U},
/*76*/{997U,-66,1006U,1127U},
/*78*/{998U,-68,1005U,1132U},
/*80*/{997U,-70,1004U,1137U},
/*82*/{997U,-72,1003U,1140U},
/*84*/{997U,-74,1003U,1146U},
/*86*/{997U,-76,1003U,1149U},
/*88*/{996U,-79,1002U,1156U},
/*90*/{995U,-81,1001U,1161U},
/*92*/{995U,-82,1000U,1166U},
/*94*/{995U,-84,1000U,1169U},
/*96*/{994U,-86,999U,1174U},
/*98*/{995U,-88,998U,1180U},
/*100*/{995U,-90,998U,1183U},
/*102*/{995U,-92,998U,1186U},
/*104*/{995U,-94,998U,1189U},
/*106*/{995U,-97,998U,1192U},
/*108*/{995U,-98,998U,1195U},
/*110*/{995U,-100,998U,1198U},
/*112*/{995U,-101,998U,1201U},
/*114*/{995U,-103,998U,1204U},
/*116*/{995U,-105,998U,1207U},
/*118*/{995U,-106,998U,1210U},
/*120*/{995U,-108,998U,1213U},

};


TempParams_t const * LP_GetTempTableRed(LedNum_t ledIndex)
{
    return TEMP_CURVE_TABLE_RED;
}

TempParams_t const * LP_GetTempTableGreen(LedNum_t ledIndex)
{
    return TEMP_CURVE_TABLE_GREEN;
}

TempParams_t const * LP_GetTempTableBlue(LedNum_t ledIndex)
{
    return TEMP_CURVE_TABLE_BLUE;
}



/*
const AccurateColorXYY_t calibratedColortable[] = 
{
  {21845, 21845, 100, 255,255,255},
  {X0, Y0, 100, 254,254,255},
};
*/



